:: Remove all nested 'bin' and 'obj' folders as well as 'build' output folder

RMDIR /S /Q build
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q "%%G"
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
PAUSE